#ifndef _FileInterface_h_
#define _FileInterface_h_


#include "Data.h"
#include "CS2103T_CE1.h"

using namespace std;


class FileInterface{
private:
	string filename;
	
	vector<Data> records;
	fstream file;

public:
	//Record Fns
	void add_record(Data _Data);
	void del_record(int _index);

	//File Fns
	void set_file(string _filename);
	string get_file();

	int read_file();
	int write_file();
	int clear_file();

	//Display Fns
	void print_records();

};


#endif